package com.example.customException;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * TODO: 这里要写注释的!
 */
public class ResultVO {
    private int code= 1;//1:正常，0:异常
    private String message;
    private StringBuilder result;
    private Object data;
    private String time= new SimpleDateFormat("yyyy-MM-dd hh:mmm:ss").format(new Date());

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public StringBuilder getResult() {
        return result;
    }

    public void setResult(StringBuilder result) {
        this.result = result;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
